<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<input type="button" value="按钮1" onclick="f1">
<button onclick="f2('貂蝉',18)">按钮2</button>
<script>
    function f1() {
        alert("f1");
    }
   // f1();
    function f2(name,age) {
        console.log(name+":"+age);
    }
    f2("冰墩墩",8);
    function f3() {
        return"666"
    }
    let info=f3();
    console.log(info);
    function f4(x,y) {
        return x * y;
    }
    let result =f4(5,9);
    console.log(result);

    let f5=function (name,age) {
        console.log(name+":"+age)
    }
    f5("关羽",58);

    let f6=new Function ("name","age","console.log(name+':'+age)");
    f6("张飞",38);

</script>
</body>
</html>